﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iSun.BLL;
using iSun.Entity;
using iSun.Common;


namespace iSun.BLL
{

    public static class ExtendMethod
    {
        /// <summary>
        ///  获取用户的功能数据权限
        /// </summary>
        /// <param name="User">当前用户</param>
        /// <param name="FunctionID">功能ID</param>
        /// <param name="Entity">实体</param>
        /// <returns></returns>
        public static string GetDataCondition(this DatUser User, Guid? FunctionID, string Entity)
        {
            return (new BUser(User)).GetDataCondition(FunctionID, Entity);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        //public static IList<iSun.Entitys.TreeView> GetAllDepts()
        //{
        //
        //}


    }
}
